import { getCookie } from '@/utils/cookie';

export default (props: any) => {
  const { username } = getCookie();

  if (username === 'admin') {
    return <div>{props.children}</div>;
  }
  return <></>;
};
